package com.spinach.game.events;

import com.spinach.game.core.GameMessage;
import com.spinach.game.enums.ServerEventCode;
import io.netty.channel.Channel;

public interface ServerEvent {

    /**
     * 事件编码
     * @return
     */
    ServerEventCode getEventCode();

    /**
     * 消息消费
     * @param channel
     * @param message
     */
    void consumer(Channel channel, GameMessage message);
}
